package errmsg

const (
	SUCCESS = 200
	FAILD   = 500
	//用户模块错误代码 1000
	ERROR_USERNAEM_EXIST = 10001
	ERROR_PASSWORD_ERR   = 10002
	ERROR_USER_NOTEXIST  = 10003
)

var Errormsg = map[int]string{
	SUCCESS: "OK",
	FAILD:   "FAIL",
	//用户模块错误代码 1000
	ERROR_USERNAEM_EXIST: "用户名已存在!",
	ERROR_PASSWORD_ERR:   "密码错误!",
	ERROR_USER_NOTEXIST:  "用户不存在!",
}

func GetErrorMsg(code int) string {
	return Errormsg[code]
}
